package com.lbw.decorator;

/**
 * @author lbw
 * @version 1.0
 * @date 2021/6/4 18:17
 */
public abstract class Drink {
    private String des;
    private float price = 0.0f;

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Drink{" +
                "des='" + des + '\'' +
                ", price=" + price +
                '}';
    }

    public abstract float cost();
}
